package com.whut.mapper;

import com.whut.model.Postinfo;

import java.util.List;

public interface PostinfoMapper {
    int deleteByPrimaryKey(Integer mKey);

    int insert(Postinfo record);

    int insertSelective(Postinfo record);

    Postinfo selectByPrimaryKey(Integer mKey);

    int updateByPrimaryKeySelective(Postinfo record);

    int updateByPrimaryKey(Postinfo record);

    /*my methods*/
    /**
     * @auther wenyihan
     * 获取所有的任职类型
     * @date 17:34 2019/10/29
     * @param
     * @return java.util.List<com.whut.model.Postinfo>
    */
    List<Postinfo> getAllServeType();

    List<Object> getAllPostInfo();

    void updatePostTypeInfo(String postType, Integer baseSalary, Integer bonus);

    Object getSalaryByPostType(String postType);
}